public class Test_1 {
    public static void main(String[] args) {
        Date date1 = new Date();
        date1.printDate();

        System.out.println("=============================");
        Date date2 = new Date(2024,12,11);
        date2.printDate();

    }






//    public static void main2(String[] args) {
//        Date date1 = new Date();
//        date1.setDate(2024,11,26);
//        date1.printDate();
//
//        Date date2 = new Date();
//        date2.setDate(2023,11,28);
//        date2.printDate();
//
//    }




    public static void main1(String[] args) {
        //        等同于 int a;

//        Student stu = new Student();
//        stu.name = "王墨";


        PetDog dog = new PetDog();
        dog.name = "小黑";
        dog.color = "黑色";
        dog.bark();
        dog.wag();

        PetDog dog2 = new PetDog();
        dog2.name = "小白";
        dog2.color = "白色";
        dog2.bark();
        dog2.wag();

//        PetDog dog3 = new PetDog();
//        PetDog dog4 = new PetDog();
////        通过 new 关键字可以实例化多个对象

    }








}
